const Router = require('koa-router');

//中间件
const { auth } = require('../middleware/auth.middleware');

//控制器
const { show } = require('../controller/exercises.controller');

const router = new Router({ prefix: '/exercises' });

//获取题目
router.get('/', auth, show);

module.exports = router;